<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>xinit</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : 19/05/2004</div>
    <p>
      <b>xinit</b> -  initialisation of a graphics driver</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>xinit([driver-name])  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>driver-name</b>
        </tt>: string.</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    Initialisation of the given driver.</p>
    <p>
    For X Window
    <tt>
        <b>driver-name</b>
      </tt> can be a string which gives the name of a display
    and a new graphics window is created. If the argument is omitted 
    the value of the environment variable DISPLAY is used if it exists or 
    the value "unix:0.0" is used.</p>
    <p>
    For the Postscript, Xfig or Gif driver, <tt>
        <b>driver-name</b>
      </tt> is a name of 
    the file where all the graphics operations are recorded.</p>
    <p>Note that in Postscript case the generated file is not a complete
      postscript file. It should be converted using the BEpsf or Blatexpr shell
      programs (see printing)</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

driver("Pos")
xinit("foo.ps")
plot2d()
xend()
driver("X11")
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="xbasimp.htm">
        <tt>
          <b>xbasimp</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="xend.htm">
        <tt>
          <b>xend</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p>J.Ph.C.  </p>
  </body>
</html>
